Skip to content

The dashboard on a phone: a bottom bar with Menu, a full-screen menu sheet, 44px targets and 16px text - #543

Merged
coderhelm[bot] merged 1 commit into
mainfrom
dashboard-phone-navigation
Dec 5, 2026
Merged

coderhelm[bot] merged 1 commit into
mainfrom
dashboard-phone-navigation

Conversation

@nambok

@nambok nambok commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

On a phone, the dashboard's menu was a 40px button in the top right corner, the hardest place to reach with a thumb. It opened a 252px drawer of 27px rows in 15.75px type, and Close was a 36px text button. Most controls were under 44px, and most fields were under 16px, so iOS Safari zoomed the page whenever one took focus.

Now the four places people check from a phone sit in a bar along the bottom of the screen: Runs, Review, Chat and Security. Menu sits beside them and opens the whole sidebar as a full-screen sheet with large rows. Below md:, every button, field and select is at least 44px, and text and fields are 16px.

Why a bottom bar plus a Menu sheet. There are 12 destinations, with Pull requests coming next.

  • Material caps a navigation bar at five, and Apple warns that crowded tab bars are hard to use, so a tab bar alone can't hold them.
  • A drawer alone keeps everything behind a top-corner button. Material says that pattern makes people "reach for the top bar on compact sizes". NN/g measured hidden navigation being found about half as often and tasks taking 15% longer.
  • The mix is what Vercel shipped this year, with "a floating bottom bar optimized for one-handed use". Supabase uses a sheet for the full sidebar.
  • Apple's concern about a More tab is that it hides content. Two things answer that here: Menu carries the counts of the places inside it, and Menu is marked current when you are on one of them.

Pull requests. The bar's order is runs, pull-requests, reviews, chat, security (PHONE_BAR_KEYS in lib/nav.ts). Once a pull-requests section is added to NAV_SECTIONS, it takes second place in the bar and Security moves into the Menu sheet, with no other change. A test checks this.

Before After
Before: a narrow drawer of small rows from the left After: the Menu sheet fills the screen with large rows, the current page marked
Before: Runs with the menu button in the top right corner After: Runs with the bottom bar: Runs, Review, Chat, Security and Menu

After at 320px: Security with every bar label whole

All screenshots use the e2e mock data (invented), in the dark theme, at 375px (the last one at 320px).

Changes

  • components/phone-bar.tsx (new): the bottom bar.
    • Items are at least 56px tall and a fifth of the width (64px at 320).
    • The current item carries aria-current="page", a bar above it and white type.
    • Counts show as a badge and are spoken after the name ("Security, 2 urgent security findings").
    • The bar sits above the home indicator.
  • client-shell.tsx: the sidebar is the Menu sheet below md:.
    • The sheet is full screen. Rows are 54px in 18px type, with a left bar on the current row.
    • The team switcher is 56px, with 54px rows.
    • Close is 44px+ with its name.
    • Safe-area padding applies on every side.
    • Usage meters scroll with the rows, so the pinned footer stays short.
    • The sheet keeps its focus trap: Escape closes it and focus returns to Menu.
    • The navigation and its counts moved into ShellNav, so a count arriving redraws only the navigation.
  • Top bar. The hamburger is gone. Back, home and search are 49px on a phone, the title is 18px, and the bar pads for the notch.
  • globals.css.
    • Below md:, every button, field and select is at least 44px (unlayered, so it beats size utilities), and checkboxes are 24px.
    • Below sm:, text-sm is 16px and fields are at least 16px.
    • --bottom-bar holds the bar's height, for anything pinned to the bottom.
  • ui.ts. Shared buttons are at least 44px tall below md:. The Modal and Drawer Close buttons are 49px. (Both were already full height on a phone.)
  • layout.tsx. viewportFit: "cover", so the existing env(safe-area-inset-*) padding works.
  • Bottom-pinned bars now sit above the phone bar: the Runs selection bar, the settings save bar, the run log's latest button and the Setup review bar. Chat and New plan subtract the bar from their height.
  • Settings and Chat lists in the sheet have 48px+ rows.
  • Help menu items are 48px+ on a phone.
  • The switch keeps its look and gets an invisible hit area over 44px tall.
  • Pages that scrolled sideways at 320px now wrap:
    • Memory: the list toolbar's actions wrap.
    • A security finding: long versions break.
    • Setup: the "new in" version breaks.
  • Tests.
    • e2e/phone-nav.spec.ts (new) runs on every page a menu item opens, 26 routes. At 320 and 375 it fails on sideways scroll. At 375 it fails on any bottom bar, top bar, page tab or Menu sheet target under 44x44, and on any field under 16px. It also checks the current-page marking, the sheet from the keyboard, the team switcher's rows, and the Pull requests place.
    • no-sideways-scroll.spec.ts now also runs at 320 on every route in the route map.
    • e2e/phone-nav-shots.spec.ts writes these screenshots when E2E_SHOTS_DIR is set.
    • app-map.spec.ts "screens list groups…" now opens the group until it stays open. The viewer redraws its list just after load, which closed the group again in about 1 of 8 runs, on main as well.

Verification

  • npm run lint (UI lint, hosted links, fixture words), npm run typecheck and root eslint on dashboard/src, dashboard/e2e and src: all pass.
  • python3 -m unittest discover -s .github/scripts: 37 tests pass. text_guard.py --text passes on this body and on the commit message.
  • Full dashboard e2e on the static build (E2E_STATIC=1, chromium and iphone-webkit): 2,192 passed, 1 failed, 28 skipped. The failure was the app-map race above. After the fix, that test passed 16 of 16 times, and passed again with security.spec.ts and tests.spec.ts alongside it on 6 workers (115 of 115).
  • phone-nav.spec.ts and phone-nav-shots.spec.ts pass again on the final build: 32 of 32.
  • Before and after audit of 20 pages at 375 and 414:
    • Controls under 44px went from 6 to 74 per page down to 0 to 11 per page. What remains is links inside sentences (WCAG 2.5.8's inline exception), 24px row checkboxes and one switch box whose hit area is over 44px.
    • Fields under 16px went from up to 17 per page to 0.

…sheet, 44px targets and 16px text

On a phone the menu was a 40px button in the top corner opening a narrow
drawer of 27px rows. Now four destinations (Runs, Review, Chat, Security)
sit in a bar at the bottom of the screen, where a thumb reaches, with Menu
beside them. Menu opens the sidebar as a full-screen sheet: 54px rows in
18px type, the current page marked with a bar, the team switcher with
large rows, Help, the account and Sign out. The bar's order keeps the
second place for a Pull requests destination (lib/nav.ts PHONE_BAR_KEYS).

Below md every button, field and select is at least 44px, body text and
fields are 16px so iOS never zooms on focus, the viewport covers the notch
with safe-area padding, and bars pinned to the bottom of a page sit above
the phone bar. Three pages that scrolled sideways at 320px now wrap.

e2e/phone-nav.spec.ts checks every main page at 320 and 375: no sideways
scroll, no navigation target under 44px, no field under 16px, the current
page marked, the sheet from the keyboard, and the Pull requests place.
no-sideways-scroll.spec.ts now also runs at 320.
@nambok nambok added the ch-review CoderHelm reviews this pull request label Dec 5, 2026

@coderhelm coderhelm Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved bde15f5 (merged)

@coderhelm

coderhelm Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Post-merge health check: deploy cancelled: the deploy for 5600bac was cancelled; nothing later deployed it.

  • Customer details guard rerun (cancelled, started 2026-12-05T17:08:56Z)
    No new failures in what ran. Run the deploy again if this commit should go out.
    Auto-merge
    The rest is in the pull request description.

@coderhelm
coderhelm Bot merged commit 5600bac into main Dec 5, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ch-review CoderHelm reviews this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant